<? $sess = new Zend_Session_Namespace(CLU_NS);?>

<div class="box">
           <div class="vietnam_menu_title">
              <ul>
              	<?foreach($this->viewParams['category_news'] as $cate) :?>
                 <?if($cate['pid'] == 2) :?>
                  <li class="curent">
		              <?if(strpos($sess->userPermissions, "administer everything")) :?>
			              <a href="<?=$this->hvnUrl(array('type' => 'news', 'action' => 'search'), 'node')?>?cluSearch=1&category=<?=$cate['id']?>&status=1"><?=p($cate['title'])?></a>
		              <?else:?>
	                  	  <a href="<?=$this->hvnUrl(array('type' => 'news', 'action' => 'view-category'), 'node')?>?category=<?=$cate['id']?>&ab=1"><?=p($cate['title'])?></a>
		              <?endif?>
                  </li>
                  <?endif?>
                 <?endforeach?>
               
              </ul>
           </div>
           <?if(isset($this->viewParams['news_content'])):?>
           <div class="vietnam_content">
               <div class="vietnam_news_feature">
                 <?if(!empty($this->viewParams['news_content'])) :?>
                 <div class="vietnam_news_feature_img">
                 	<? if ($this->viewParams['news_content']['0']['thumb'])
                		$imageUrl = str_replace("/original/", "/medium/", $this->viewParams['news_content']['0']['thumb']);
                	else
                		$imageUrl = "/public/themes/hard/images/img-news.jpg";
               		 ?>
                	<img src="<?=$imageUrl?>" align="absmiddle" /> 
                 </div>
                 <br />
                 <div class="vietnam_news_title">
                 	<a href="<?=$this->hvnUrl(array('type' => 'news', 'action' => 'view'), 'node')?>?id=<?=$this->viewParams['news_content']['0']['id']?>&ab=1">
                 		<?=$this->viewParams['news_content']['0']['title']?></a>
                 </div>
                 <br />
                 <div class="vietnam_news_feature_text" style="text-align:justify;">
                     <?=str_first_words(strip_tags($this->viewParams['news_content']['0']['body']), 60)?>
                 </div>
                 <?endif?>
               </div>
               <div class="vietnam_news_other">
               <?$i = 0;?>
               <?if(!empty($this->viewParams['news_content'])) :?>
               <?foreach($this->viewParams['news_content'] as $news) :?>
               <?if($this->viewParams['news_content']['0']['id'] != $news['id']):?>
                  <div class="list_news border_news">
                   <div class="news_img">
                 	<? if ($news['thumb'])
                		$imageUrl = str_replace("/original/", "/medium/", $news['thumb']);
                	else
                		$imageUrl = "/public/themes/hard/images/img-news.jpg";
               		 ?>
                	<img src="<?=$imageUrl?>" align="absmiddle" />
                   </div>
                   <div class="vietnam_news_title"><a href="<?=$this->hvnUrl(array('type' => 'news', 'action' => 'view'), 'node')?>?id=<?=$news['id']?>&ab=1"><?=$news['title']?></a></div>
                   <div class="text"><?=str_first_words(strip_tags($news['body']), 20)?></div>
                </div>
                <?$i++;?><?if($i == 3) :?><?break;?><?endif?>
                <?endif?>
                <?endforeach?>
                <?endif?>
               </div>
               <div class="clear"></div>
           </div>
           <?endif?>
</div>
<script type="text/javascript">
	var oriLang = ' ';
	var lang = '<?= $sess->viewLang?>';
    googleTranslate(oriLang, lang, 'vietnam_news_title', 'text');
    googleTranslate(oriLang, lang, 'vietnam_news_title', 'vietnam_news_feature_text');
</script> 